﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BIG = System.Numerics.BigInteger;
namespace PodpisyElektorniczne.Classes
{
    public class Skdl
    {
        public BIG ResultC { get; private set; }
        public BIG ResultS { get; private set; }

        public Skdl()
        {
        }

        public Skdl(BIG g, BIG salt_i, BIG msg) 
        {                       
            this.ResultC = new BIG();
            this.ResultS = new BIG();
        }        

        public Skdl(string[] s)
        {
            ResultC = BIG.Parse(s[0]);
            ResultS = BIG.Parse(s[1]);
        }

        public void SetresultC(BIG c)
        {
            this.ResultC =c;
        }

        public void SetResultS(BIG s)
        {
            this.ResultS = s;
        }

        public override string ToString()
        {
            return string.Format("{0}{1}", ResultC.ToString("R"), ResultS.ToString("R"));
        }

        public string[] ToArray()
        {
            return new []{ ResultC.ToString("R"), ResultS.ToString("R")};
        }

    }
}
